package com.woniuxy.homeWork.service;

import com.woniuxy.homeWork.commons.Transactional;
import com.woniuxy.homeWork.model.User;

import java.util.List;

/**
 * ClassName:UserService
 * Package:com.woniuxy.homeWork.service
 *
 * @date:2021/11/2 5:50 下午
 * @author: Tiangle
 */
public interface UserService {
    @Transactional
    boolean addUser(User user);
    @Transactional
    boolean updateUser(User user);
    @Transactional
    boolean deleteUser(Integer id);
    User getOne(Integer id);
    List<User> getAll();

}
